package com.fz.Test;

import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Created by xiao zeng on 2017/7/3.
 */

@Component("uok")

public class user {

    @PostConstruct
    public void init() {
        System.out.println("初始化");
    }

    public void show() {
        System.out.println("显示");
    }

    @PreDestroy
    public void droptoy() {
        System.out.println("销毁");
    }

    public user() {
        System.out.println("构造方法");
    }
}
